package com.smartcommunity.elasticsearch.entranceguard.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(description = "门禁记录请求模型")
public class EntranceGuardEsReq implements Serializable {
    private static final long serialVersionUID = 7491093783544518607L;

    @ApiModelProperty(notes = "小区villageCode", example="ewu3",hidden = true)
    private String villageCode;

    @ApiModelProperty(value = "行政区划编号")
    private String parentId;

    @ApiModelProperty(notes = "设备id", example = "deviceId")
    private String deviceId;

    @ApiModelProperty(notes = "楼栋号", example = "buildingNo")
    private String buildingNo;
    @ApiModelProperty(notes = "单元号", example = "unitNo")
    private String unitNo;

    @ApiModelProperty(notes = "房间号", example="houseNo")
    private String houseNo;

    @ApiModelProperty(notes = "身份证", example = "4200000000000000")
    private String credentialNo;

    @ApiModelProperty(notes = "排序字段,刷卡时间", example="openTime")
    private String sortField = "openTime";

    @ApiModelProperty(notes = "排序模式 desc:倒序 asc:正序", example="desc")
    private String sortMode ="desc";

    @ApiModelProperty(notes = "查询开始时间")
    private Long startTime;

    @ApiModelProperty(notes = "查询结束时间")
    private Long endTime;

    @ApiModelProperty(notes = "全文检索的查询条件，姓名，证件号，楼栋号，房间号",example="4200000000000000")
    private String text;

    @ApiModelProperty(notes = "页码", example="1")
    private Integer pageNum = 1;

    @ApiModelProperty(notes = "每页显示多少数据", example="10")
    private Integer pageSize = 10;
}
